FHIR Error API Policy
Setup guide
Publishing the policy
- Log into the Anypoint Platform.
- Navigate to Anypoint Exchange.
- Locate the FHIR Error API Policy.
- Click the 'Download as Custom file' option:
- Unzip the asset to an empty directory.
- Using the command line, open the unzipped folder.
- Ensure the settings.xml file has a server entry corresponding to
exchange-server
, which should enlist a user with Anypoint Exchange Contributor permissions:exchange-server platform\_user password
- Run the script provided by providing the Exchange organization id as the parameter:
./deploy.sh some-org-id-value
Modifications
If additional error types need to be handled by this custom policy, modify the policy's template.xml file.
Chain policies in API Manager
API Manager can be used to chain policies to return OperationOutcome
format errors from other OOTB policies. The FHIR Error API Policy should be applied first, followed by other authentication/quality of service policies to achieve the required goal.